package com.qian.api.ddj.util;

import java.util.Base64;

/**
 * created by quziwei on 2018/2/27 0027  20:19
 */
public class Base64Utils {

    public static String encode(byte[] str){
            return Base64.getEncoder().encodeToString(str);
    }

    public static byte[] decode(String str){
        byte[] asBytes = Base64.getDecoder().decode(str);
        return asBytes;
    }
}
